package com.psbc.springbootstudydemo1.schedule;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

@Component
public class VideoOrderTask {
    //@Scheduled(fixedRate = 2000)
    public void sum(){
        System.out.println(LocalDateTime.now()+"当前的交易金额"+Math.random());
    }
}
